<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <title></title>
    <link rel="stylesheet" href="./css/markdown2.css">
</head>

<body>
<div id="content">

</div>
<script src="./js/jquery.js"></script>
<script src="./js/ajax.js"></script>
<script src="./js/marked.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">


        //获取安卓传来的参数
       var  getParams = function(data) {
            var passData = JSON.parse(data);

            getMarkdown(
                passData,
                function(res){
                    $("#content").html(marked(res));
                })
//            $.ajax({
//               type: "get",
//               url: "https://api.qingkequn.com/api/aliyun/oss/md/20171228/" + passData.ID + ".md",
//               async: true,
//               beforeSend: function (res) {
//                   res.setRequestHeader("Authorization", token)
//               },
//               success: function (res) {
//
//               },
//               error: function (res) {
//                   console.log("获取文稿失败" + res)
//               }
//           });


        };





</script>

</body>

</html>